package com.lxm.ymcc.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "sms.verifycode")
@RefreshScope //动态刷新
public class SMSCodeProperties {
    private int length;
    private int  interval;
    /** 验证码类型 */
    private static String captchaType;

    public static String getCaptchaType() {
        return captchaType;
    }

    public void setCaptchaType(String captchaType) {
        SMSCodeProperties.captchaType = captchaType;
    }
}
